﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary.Data;
using System.Data;

namespace ClassLibrary.DAO
{
    public class TblColorDAO
    {
        DBService _db = null;
        public TblColorDAO(string ConnectionString)
        {
            _db = new DBService(ConnectionString);
        }
        public DataTable GetColor()
        {
            DataTable dt = null;
            try
            {

                dt = _db.ExeSP_DataTable("select * from TblColor", false, CommandType.Text);

            }
            catch (Exception ex)
            {
                throw ex;
            }

            return dt;
        }
    }
}
